#!/bin/sh

LISTEN_TIME=15
DEVICES_FILE=/var/run/upnp/devices

/usr/bin/upnp-query listen $LISTEN_TIME | grep -v Listen > $DEVICES_FILE.tmp
cat $DEVICES_FILE >> $DEVICES_FILE.tmp
cat $DEVICES_FILE.tmp | sort | uniq > $DEVICES_FILE




